syncrhonize config and run time version checks.
authortsteven4 <tsteven4@gmail.com>
Sun, 29 Apr 2018 20:50:36 +0000 (14:50 -0600)
committertsteven4 <tsteven4@gmail.com>
Sun, 29 Apr 2018 20:50:36 +0000 (14:50 -0600)
configure
configure.ac
gui/main.cc
main.cc

index 1ed361f695be0f7f720dc82458ba6bfde50039bf..4ae4d2c45e91f8f77f9bb36e8d7123f3f963dba4 100755 (executable)
--- a/configure
+++ b/configure
@@ -5783,6 +5783,7 @@ esac
 fi
 
 
+# MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
 MIN_QT_VERSION=5.7
 if test "$QMAKE" = "no"; then :
 
index 510804f0b5efdbf8a9a9c55edd60ea3c62b24cce..455c1db0da9b1ae23abd8ef9057a3dab935cfe33 100644 (file)
@@ -166,6 +166,7 @@ AC_CHECK_TOOLS(QMAKE, [qmake-qt5 qmake], "no")
 AC_CHECK_TOOLS(LUPDATE, [lupdate-qt5 lupdate])
 AC_CHECK_TOOLS(LRELEASE, [lrelease-qt5 lrelease])
 
+# MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
 MIN_QT_VERSION=5.7
 AS_IF([test "$QMAKE" = "no"], [
        AC_MSG_ERROR([Qt qmake (with QT_VERSION >= $MIN_QT_VERSION) is required but was not found.])
index e9f991f920f9da410c733e0aa91f883a060a41ad..5e605ab5c95c2c1511911d1fbc2a6c99e35982f8 100644 (file)
@@ -44,7 +44,8 @@ const char *pathSeparator = ":";
 //------------------------------------------------------------------------
 int main(int argc, char**argv)
 {
-#if (QT_VERSION < QT_VERSION_CHECK(5, 2, 0))
+# MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
+#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0))
   #error this version of Qt is not supported.
 #endif
 
diff --git a/main.cc b/main.cc
index 6874b2fe5d26766bb07b130cf054bca6057efc07..68b164a08011cebfe1efac87559206add2ef8ee7 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -228,7 +228,8 @@ main(int argc, char* argv[])
 
   (void) new gpsbabel::UsAsciiCodec(); /* make sure a US-ASCII codec is available */
 
-#if (QT_VERSION < QT_VERSION_CHECK(5, 2, 0))
+# MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
+#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0))
 #error This version of Qt is not supported.
 #endif